package com.wang.gulimall.product.feign;

import com.wang.common.to.SkuReductionTo;
import com.wang.common.to.SpuBoundTo;
import com.wang.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 子凡
 * @date 2021/01/15
 * 远程调用优惠券服务的feign客户端
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    @PostMapping("/coupon/spubounds/saveTo")
    R saveSpuBounds(@RequestBody SpuBoundTo boundTo);

    /**
     * 远程调用sku的满减信息
     * @param skuReductionTo
     */
    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
